@layout("/common/_container.html",{js:["/assets/modular/order/order.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">订单信息管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
       <!-- <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">
            <div class="layui-card">
                <div class="layui-card-body mini-bar">
                    <div class="ztree" id="deptTree"></div>
                </div>
            </div>
        </div>-->
        <div class="layui-col-sm12 layui-col-md912 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <div class="layui-inline">
                                    <select id="orderStatus" class="layui-input" type="text" placeholder="订单状态">
                                        <option value=""> 全部</option>
                                        <option value="10">待完善</option>
                                        <option value="20">待付款</option>
                                        <option value="30">待发货</option>
                                        <option value="40">已发货</option>
                                        <option value="50">已完成</option>
                                        <option value="60">已取消</option>
                                        <option value="70">退款中</option>
                                        <option value="80">已退款</option>
                                    </select>
                                </div>
                                <div class="layui-inline">
                                    <select id="payType" class="layui-input" type="text" placeholder="支付方式">
                                        <option value="">全部</option>
                                        <option value="1">现金支付</option>
                                        <option value="2">积分支付</option>
                                        <option value="3">混合支付</option>
                                    </select>
                                </div>
                                <div class="layui-inline">
                                    <input id="orderNo" class="layui-input" type="text" placeholder="订单编号"/>

                                </div>
                                <div class="layui-inline">
                                    <input id="userName" class="layui-input" type="text" placeholder="用户昵称"/>
                                </div>

                                <div class="layui-inline">
                                    <input id="userNo" class="layui-input" type="text" placeholder="用户编号"/>
                                </div>
                                <div class="layui-inline">
                                    <input id="payNo" class="layui-input" type="text" placeholder="支付编号"/>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-inline">
                                    <label class="layui-form-label">金额范围</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="number" name="totalPriceMin" id="totalPriceMin" placeholder="￥" autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="number" name="totalPriceMax" id="totalPriceMax"  placeholder="￥" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">下单时间</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="payTimeMin" id="payTimeMin"  autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">-</div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="payTimeMax" id="payTimeMax"  autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>

                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="orderTable" lay-filter="orderTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn  layui-btn-xs" lay-event="orderEdit">查看</a>

</script>
<script  type="text/html" id="statusTpl">
    {{# if(d.status==1){ }}
    <p style="height: 40px;text-align: center; " class="layui-bg-green" >等待 </p>
    {{#  }else if(d.status==2){ }}
    <p style="height: 40px;text-align: center; " class="layui-bg-orange"> 发布</p>
    {{#  }else if(d.status==3){  }}
    <p  style="height: 40px;text-align: center; " class="layui-bg-red">拒绝</p>
    {{#  }else if(d.status==4){  }}
    <p style="height: 40px;text-align: center; " class="layui-bg-blue" >下线</p>
    {{# } }}
</script>
<script id="mergeTpl"  type="text/html">
    {{# if(d.mergeOrder==1){ }}
    <p style="height: 40px;text-align: center; " class="layui-bg-green" >拼单</p>
    {{#  }else{ }}
    <p style="height: 40px;text-align: center; " class="layui-bg-orange">普通订单</p>
    {{#  } }}
</script>
@}